package com.tust.app.dao;

import com.tust.app.domain.Answer;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface AnswerMapper {

    Answer selectAnswerById(Integer id);

    List<Answer> selectAllAnswers();

    void insertAnswer(Answer answer);

    void updateAnswer(Answer answer);

    boolean deleteAnswer(Integer id);

    List<Answer> selectAnswersByState(Integer state2);
}